import { close, connect } from "../../util/mongo"
export default defineEventHandler(async (event) => {
  const dataPack = await readBody(event)
  
    console.log("/api/hejia",dataPack)
  
      const {db,client} = await connect()
      const collection = db.collection('hejia')
     
      await collection.insertMany(dataPack)
      close(client)
})
